package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 终端客户实体类
 *
 * @author 吴旭
 */
public class EndUserEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -1968713811253059138L;
    private Long EndUserId;
    private String EndUserNo;
    private String EndUserName;
    private String ShortName;
    private String Country;
    private String Description;
    private Long CatalogueId;
    private String CatalogueName;

    public Long getEndUserId() {
        return EndUserId;
    }

    public void setEndUserId(Long EndUserId) {
        this.EndUserId = EndUserId;
    }

    public String getEndUserNo() {
        return EndUserNo;
    }

    public void setEndUserNo(String EndUserNo) {
        this.EndUserNo = EndUserNo;
    }

    public String getEndUserName() {
        return EndUserName;
    }

    public void setEndUserName(String EndUserName) {
        this.EndUserName = EndUserName;
    }

    public String getShortName() {
        return ShortName;
    }

    public void setShortName(String ShortName) {
        this.ShortName = ShortName;
    }

    public String getCountry() {
        return Country;
    }

    public void setCountry(String Country) {
        this.Country = Country;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    public Long getCatalogueId() {
        return CatalogueId;
    }

    public void setCatalogueId(Long CatalogueId) {
        this.CatalogueId = CatalogueId;
    }

    public String getCatalogueName() {
        return CatalogueName;
    }

    public void setCatalogueName(String CatalogueName) {
        this.CatalogueName = CatalogueName;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof EndUserEntity)) {
            return false;
        }

        final EndUserEntity that = (EndUserEntity) o;

        return new EqualsBuilder()
                .append(this.getEndUserId(), that.getEndUserId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getEndUserId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
